﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Common/Site.Master" AutoEventWireup="true" CodeBehind="LotteryRegister.aspx.cs" Inherits="FortuneHeaven.Web.Lottery.LotteryRegister" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link type="text/css" rel="stylesheet" href="../../Content/CSS/account.css" />
    <style>
           .onelink
        {
            background-image: url("../Content/Image/Common/s2.gif");
            background-repeat: no-repeat;
            color: #FFFFFF;
            display: inline-block;
            height: 23px;
            line-height: 23px;
            margin-right: 10px;
            text-align: center;
            width: 52px;
        }
        .twolink
        {
            background-image: url("../Content/Image/Common/s3.gif");
            background-repeat: no-repeat;
            color: #FFFFFF;
            display: inline-block;
            height: 23px;
            line-height: 23px;
            margin-right: 10px;
            text-align: center;
            width: 52px;
        }
           .imgsize
        {
            margin-left: 10px;
        }
    </style>
    <script>
        
        function CheckSub() {
            var acount = $("#<%=txtAcount.ClientID%>");
            var pwd = $("#<%=txtPwd.ClientID%>");
            var lottery = $("#<%=txtLottery.ClientID%>");
            var validate = $("#<%=txtValidate.ClientID%>");
            var mobile = $("#<%=txtMobile.ClientID%>");
            var qq = $("#<%=txtQQ.ClientID%>");
            var mail = $("#<%=txtMail.ClientID%>");
            if (!acount.val() || acount.val() == "" ) {
                alert("请填写账号");
                return false;
            }

            if (!pwd.val() || pwd.val() == "") {
                alert("请输入密码");
                return false;
            }
            if (!lottery.val() || lottery.val() == "") {
                alert("请输入抽奖号码");
                return false;
            }
            if (!validate.val() || validate.val() == "") {
                alert("请输入验证码");
                return false;
            }

            if (!mobile.val() || mobile.val() == "") {
                alert("请填写真实手机号码，方便领取奖品");
                return false;
            }
            if (!qq.val() || qq.val() == "") {
                alert("请填写第二联系方式，方便您获得奖品");
                return false;
            }
            if (!mail.val() || mail.val() == "") {
                alert("请填写第三联系方式，方便您获得奖品");
                return false;
            }
            return true;
        }
    </script>
    
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="main">
        <div class="top">
            免费抽奖</div>
        <div class="body">
            <div class="framlist">
                <span class="left">帐号：</span><span
                    class="right">
                    <asp:TextBox CssClass="text" ID="txtAcount" runat="server"></asp:TextBox></span></div>
            <div class="framlist">
                <span class="left">密码：</span><span
                    class="right"><asp:TextBox CssClass="text" ID="txtPwd" TextMode="Password" runat="server"></asp:TextBox></span></div>
            <div class="framlist">
                <span class="left">抽奖号码：</span><span
                    class="right"><asp:TextBox CssClass="text" ID="txtLottery"  runat="server"></asp:TextBox></span></div>
            <div class="framlist">
                <span class="left">联系电话：</span><span class="right"><asp:TextBox CssClass="text" ID="txtMobile"
                    runat="server"></asp:TextBox></span></div>
            <div class="framlist">
                <span class="left">QQ号码：</span><span class="right"><asp:TextBox CssClass="text" ID="txtQQ"
                    runat="server"></asp:TextBox></span></div>
            <div class="framlist">
                <span class="left">邮箱：</span><span class="right"><asp:TextBox CssClass="text" ID="txtMail"
                    runat="server"></asp:TextBox></span></div>
            <div class="framlist">
                <span class="left">验证码：</span><span
                    class="right"><asp:TextBox CssClass="text" ID="txtValidate"  runat="server"></asp:TextBox><img
                                    style="border-width: 0px; cursor: pointer;" class="imgsize" src="<%=ResolveUrl("~/ValidationCode.ashx")%>"
                                    onclick="this.src='<%=ResolveUrl("~/ValidationCode.ashx")%>?n='+ Math.random();"
                                     title="点击刷新验证码。" id="ctl00_ContentPlaceHolder1_PassCode"></span></div>
           
             <div class="framlist">
                    <span class="left"></span><span class="right">
                        <asp:LinkButton ID="LinkButton1" runat="server" CssClass="onelink" OnClick="SubLottery"
                            OnClientClick="return CheckSub();">提交</asp:LinkButton>
                        <a class="twolink" href='<%= Page.ResolveUrl("~/Default.aspx") %>'>返回首页</a></span></div>
                      
        </div>
    </div>
</asp:Content>
